package io.seata.samples.tcc.springboot.springcloud.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("action-one-provider")
public interface TccActionOneFeign {

    @GetMapping("/prepare")
    public String prepare(@RequestParam(name = "param") String param);

    @GetMapping("/commit")
    public String commit(@RequestParam(name = "param") String param);

    @GetMapping("/rollback")
    public String rollback(@RequestParam(name = "param") String param);

}
